package com.cskaoyan.enums;

public enum ResultEnum {

    // 数据操作定义
    SUCCESS(0, "成功"),
    USER_CANCEL(102, "用户取消"),
    SYSTEM_CANCEL(103, "系统取消"),
    HAS_PAID(201, "已付款"),
    APPLY_REFUND(202, "申请退款"),
    HAS_REFUND(203, "已退款"),
    HAS_DELIVERED(301, " 已发货"),
    USER_ACCEPT(401, "用户收货"),
    SYSTEM_ACCEPT(402, "系统收货"),
    ACCOUNT_FAIL(605, "用户帐号或密码不正确"),
    USER_NOT_LOGIN(-1, "用户未登录"),
    SYSTEM_ERROR(502, "系统内部错误"),
    USER_UNPAID(101, "未付款"),
    STOCK_LACK(303, "库存不足");

    private final Integer code;

    private final String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
